Skip to content

Add MessageDispatcher class that queues messages when WebView is unavailable#451

Merged
maycon-mello merged 11 commits into
masterfrom
DCKA-5365-something-went-wrong-on-the
Mar 3, 2026
Merged

Add MessageDispatcher class that queues messages when WebView is unavailable#451
maycon-mello merged 11 commits into
masterfrom
DCKA-5365-something-went-wrong-on-the

Conversation

@maycon-mello

Copy link
Copy Markdown
Collaborator

No description provided.

Comment thread integration-tests/verification-flow/bbs-plus-revocation.test.ts Outdated
Comment thread packages/react-native/lib/message-handler.js
Comment thread packages/react-native/lib/message-handler.js Outdated
Comment thread packages/react-native/lib/message-handler.test.js
Comment thread integration-tests/helpers/wallet-helpers.ts
this._send(webView, type, body);
this._send(webView, type, body);
} catch (err) {
console.warn('Failed to process queued message, discarding:', err.message);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at some point we may need to make this smarter to check for errors that might be transient which would allow the message to be processed successfully in the future

we could also look at some of the queuing patterns around dead letter queues which might allow us to try to reprocess messages in the future if meaningful changes occur that would allow it

@maycon-mello
maycon-mello merged commit 5fc2bf1 into master Mar 3, 2026
6 of 7 checks passed
@maycon-mello
maycon-mello deleted the DCKA-5365-something-went-wrong-on-the branch March 3, 2026 16:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants